+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
+Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
+ GDK_TYPE_RECTANGLE.
+
+ * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
+ of allocation argument be GDK_TYPE_RECTANGLE.
+
Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c: Account for the fact that the border
GdkRectangle *src2,
GdkRectangle *dest);
+#define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ())
+
/* Conversion functions between wide char and multibyte strings.
*/
gchar *gdk_wcstombs (const GdkWChar *src);
return return_val;
}
+
+static GdkRectangle *
+gdk_rectangle_copy (const GdkRectangle *rectangle)
+{
+ GdkRectangle *result = g_new (GdkRectangle, 1);
+ *result = *rectangle;
+
+ return result;
+}
+
+GType
+gdk_rectangle_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("GdkRectangle",
+ NULL,
+ (GBoxedCopyFunc)gdk_rectangle_copy,
+ (GBoxedFreeFunc)g_free,
+ FALSE);
+ return our_type;
+}
+
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, size_allocate),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__BOXED,
GTK_TYPE_NONE, 1,
- GTK_TYPE_POINTER);
+ GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
widget_signals[STATE_CHANGED] =
gtk_signal_new ("state_changed",
GTK_RUN_FIRST,